a=load('tab.txt');
distvala=dist(a);
max1=max(a');
min1=min(a');
max1=max1';
min1=min1';
[n,m]=size(a);
for i=1:n
    for j=1:m
        if (max1(i)-min1(i))==0
            anorm(i,j)=0;
        else
            anorm(i,j)=(a(i,j)-min1(i))/(max1(i)-min1(i));
        end
    end
end
distvalan=dist(anorm);
save EDNorm.txt distvalan -ASCII -TABS
save ED.txt distvala -ASCII -TABS

